﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ARCam3D.Tuple
{
    public class Point3D : Tuple3D
    {
        public static double GetDistance(Point3D p1, Point3D p2)
        {
            return Math.Sqrt((p2.x - p1.x) * (p2.x - p1.x) + (p2.y - p1.y) * (p2.y - p1.y) + (p2.z - p1.z) * (p2.z - p1.z));
        }

        public Point3D() : base() { }

        public Point3D(double x, double y, double z) : base(x, y, z) { }

        public Point3D(Tuple3D tuple) : base(tuple) { }
    }
}
